import request from '@/utils/request'

// 查询医师信息列表
export function listDoctorMessage(query) {
  return request({
    url: '/business/doctorMessage/list',
    method: 'get',
    params: query
  })
}

// 查询医师信息详细
export function getDoctorMessage(id) {
  return request({
    url: '/business/doctorMessage/' + id,
    method: 'get'
  })
}

// 新增医师信息
export function addDoctorMessage(data) {
  return request({
    url: '/business/doctorMessage',
    method: 'post',
    data: data
  })
}

// 修改医师信息
export function updateDoctorMessage(data) {
  return request({
    url: '/business/doctorMessage',
    method: 'put',
    data: data
  })
}

// 删除医师信息
export function delDoctorMessage(id) {
  return request({
    url: '/business/doctorMessage/' + id,
    method: 'delete'
  })
}

// 查询医角色用户信息
export function getDoctorUserList() {
  return request({
    url: '/system/user/getDoctorUserList',
    method: 'get'
  })
}
